package com.zretc.entity;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 实体类
 * @author Administrator
 *
 */
@Component("u")
public class Users {
	@Value("1")
	private int userid;
	@Value("老张")
	private String username;
	@Value("张三丰")
	private String nickname;
	
	
	
	@Override
	public String toString() {
		return "Users [userid=" + userid + ", username=" + username + ", nickname=" + nickname + "]";
	}
	public int getUserid() {
		return userid;
	}
	public void setUserid(int userid) {
		this.userid = userid;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	

}
